Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
|
We're still going to be missing math support: https://theaccessibilityguy.com/how-to-use-latex-for-accessible-math-in-pdfs/ |
| \DocumentMetadata{% | ||
| lang = en-us, | ||
| pdfversion = 2.0, | ||
| pdfstandard = ua-2, | ||
| tagging = on, | ||
| tagging-setup = {math/setup=mathml-SE} | ||
| } | ||
| \tagpdfsetup{activate, tabsorder=structure} |
There was a problem hiding this comment.
I wonder if this should be configurable for users who desire to configure the \DocumentMetadata. There are a few options with different values like lang or pdfstandard
Documented at https://mirrors.ctan.org/macros/latex/required/latex-lab/documentmetadata-support-code.pdf
I guess this is how Pandoc would add it in its template.
Otherwise, if we put it in its own partials (taggedpdf.tex for example), then this would be really easy for a user to pass its own version with modified options. Could be worth it if we are not sure yet what to expose as config
pdf:
tagpdf:
pdfstandard: ...
There was a problem hiding this comment.
I like having a taggedpdf.tex partial.
There was a problem hiding this comment.
the partial is document-metadata.latex in #13857, with the intention to contribute the partial and related logic upstream.
|
The docs suggest to use |
|
Yes it should, but is lualatex-dev ship with TeX Live ? On my installation I don't see it |
|
I found an old Dockerfile from last year that I had written to experiment with tagging. This is what I used: FROM pandoc/latex
RUN tlmgr install \
l3experimental \
latex-base-dev \
latex-bin-dev \
pdfmanagement-testphase \
tagpdf && \
mv /opt/texlive/texdir/bin/default/lualatex \
/opt/texlive/texdir/bin/default/lualatex-original && \
ln -s /opt/texlive/texdir/bin/default/lualatex-dev \
/opt/texlive/texdir/bin/default/lualatexI think the linking was necessary because pandoc doesn't accept a program named |
|
For what's worth, I didn't need to call |
|
Add support for code cells: |
|
Sophie and Sam told me the tagpdf package actually warns users of missing alt text. We should pull those warnings and show them. |
|
Also, alt text for cover image (it's in metadata + partials so will need extra care) |
|
This is fairly disappointing, but we've hit a blocker issue in Pandoc 3.7.0.2 and need to push this to 1.9 (specifically, we need to push this to after we start using quarto-dev/quarto-markdown) |
|
Specifically, we're blocked by #13249 |
|
I've been playing with the changes here along with Pandoc 3.8.3. ---
format:
latex:
tagpdf: true
keep-tex: true
title: This is a tagpdf test
_quarto:
tests:
latex:
ensureFileRegexMatches:
-
- "tagging = on"
- 'alt={alt text 2 here}'
- []
---
## This is a test
{fig-alt="alt text 2 here"}This test passes with Pandoc 3.8.3, but we should add the following, currently failing, examples: ---
format:
latex:
tagpdf: true
keep-tex: true
title: This is a tagpdf test
_quarto:
tests:
latex:
ensureFileRegexMatches:
-
- "tagging = on"
- 'alt={alt text 1 here}'
- 'alt={alt text 2 here}'
- 'alt={alt text 3 here}'
- []
---
## This is a test
{fig-alt="alt text 2 here"}
{fig-alt="alt text 1 here"}
{#fig-3 fig-alt="alt text 3 here"} |
|
Thank you for your continued work on this important feature! Just wanted to let you know that I recently learned that the Luckily, there seems to be a straightforward fix: in the yaml, specify the |
|
Closing in favor of #13857 |
This won't work until we pull Pandoc 3.7.0.2 as a binary dependency. But when we do, the test
tests/docs/smoke-all/latex/tagpdf.qmdshould pass.